From: Jim Blandy Date: Sun, 16 May 1993 00:23:33 +0000 (+0000) Subject: * xfaces.c (unload_color): Don't try to unload the standard black X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96242 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=32dc08666b5b8448113be6d4425885cd37c5d974;p=emacs.git * xfaces.c (unload_color): Don't try to unload the standard black or white pixel. --- diff --git a/src/xfaces.c b/src/xfaces.c index e037d703812..225e9939445 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -406,7 +406,9 @@ unload_color (f, pixel) { Colormap cmap; Display *dpy = x_current_display; - if (pixel == FACE_DEFAULT) + if (pixel == FACE_DEFAULT + || pixel == BLACK_PIX_DEFAULT + || pixel == WHITE_PIX_DEFAULT) return; cmap = DefaultColormapOfScreen (DefaultScreenOfDisplay (x_current_display)); BLOCK_INPUT;